]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
audioDeviceSelection: Only include settings button when allowed
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 15 Jan 2019 19:12:04 +0000 (20:12 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 16 Jan 2019 00:30:46 +0000 (00:30 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/issues/909

js/ui/audioDeviceSelection.js

index 3f4b9bcc7682c8347d059a45a0930fa3878bb589..b44a3e7ac552ecaa2949bde54e23b198a4e4d055 100644 (file)
@@ -56,8 +56,9 @@ var AudioDeviceSelectionDialog = new Lang.Class({
         this._selectionBox = new St.BoxLayout({ style_class: 'audio-selection-box' });
         this.contentLayout.add(this._selectionBox, { expand: true });
 
-        this.addButton({ action: this._openSettings.bind(this),
-                         label: _("Sound Settings") });
+        if (Main.sessionMode.allowSettings)
+            this.addButton({ action: this._openSettings.bind(this),
+                             label: _("Sound Settings") });
         this.addButton({ action: this.close.bind(this),
                          label: _("Cancel"),
                          key: Clutter.Escape });